import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)


const routes = [{
	path: '/',
	redirect: "/tabsview",
	name: 'Index',
	component: () => import("../../views/web/index.vue"),
	children: [{
		path: '/tabsview',
		name: 'tabsview',
		component: () => import('../../components/web/routerview/tabsview.vue'),
		meta: {
			keepAlive: true // 需要缓存
		}
	}, {
		path: '/findsongsearch',
		name: 'findsongsearch',
		component: () => import('../../components/web/findsongsearch.vue'),
		meta: {
			keepAlive: false // 需要缓存
		}
	}, {
		path: '/singersong',
		name: 'singersong',
		component: () => import('../../components/web/singersong.vue'),
		meta: {
			keepAlive: false // 需要缓存
		}
	}]
}]


const router = new VueRouter({
	routes
})

export default router
